using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;

namespace Sidebar
{    

    internal class NativeMethods
    {
        internal const int WM_NCLBUTTONDOWN = 0xA1;
        internal const int HTCAPTION = 0x2;

        [DllImportAttribute("user32.dll")]
        internal static extern bool ReleaseCapture();
        [DllImportAttribute("user32.dll")]
        internal static extern int SendMessage(IntPtr hWnd, uint Msg, uint wParam, IntPtr lParam);
        [DllImportAttribute("user32.dll")]
        internal static extern int SendMessage(IntPtr hWnd, uint Msg, uint wParam, uint lParam);

        [DllImport("user32.dll")]
        internal static extern bool SetForegroundWindow(IntPtr hWnd);
        [DllImport("user32.dll")]
        internal static extern IntPtr FindWindow([MarshalAs(UnmanagedType.LPStr)] string CWnd, string Title);
        [DllImport("user32.dll")]
        internal static extern IntPtr GetForegroundWindow();

    }
}
